package com.cskaoyan.market.controller.wx;

import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("wx/category")
public class WxAdminCategoryController {

    //需要何种权限
    @RequiresPermissions("admin:category:read")
    @GetMapping("read")
    public Object read(){
        System.out.println("read");

        return null;
    }

    @RequiresPermissions("admin:category:update")
    @GetMapping("update")
    public Object update(){
        System.out.println("update");

        return null;
    }
}
